package com.yh.pojo;

import java.math.BigDecimal;

public class Fruits {

    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 库存数量
     */
    private int stockNum;

    /**
     * 单位
     */
    private String unit;

    public Fruits() {
    }

    public Fruits(Long id, String name, BigDecimal price, int stockNum, String unit) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.stockNum = stockNum;
        this.unit = unit;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStockNum() {
        return stockNum;
    }

    public void setStockNum(int stockNum) {
        this.stockNum = stockNum;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
